{% extends "tj3/tj3.html" %}

{% block navigation %}
<script type="text/javascript">
	$(document).ready(function(){
		$('#id_form-0-start').datepicker();
		$('#id_form-0-end').datepicker();	
		$('#id_form-0-max_start').datepicker();
		$('#id_form-0-min_start').datepicker();
		$('#id_form-0-max_end').datepicker();
		$('#id_form-0-min_end').datepicker();
		
		$('#update_btn').button();
		$('#delete_btn').button();
		$('#cancel_btn').button();
	});
</script>
{% endblock navigation %}


{% block content  %} 
<h1 class="ui-widget ui-widget-header">{{task.project.name}}/{{task.name}}<span class="float_right">{{scenario|capfirst}}: Duration & Effort</span></h1>


<div class="ui-widget ui-widget-content">
	<div class="mycontent">
		<br>
	<form action="." method="post" enctype="multipart/form-data">
		<table>
			<tbody>
				{{ period_formset.management_form }}
				{{ period_formset }}
			</tbody>
		</table>
		
		<div class="float_right">
			<input id="update_btn" type="submit" name="command" value="Update" class="button" />
			<input id="delete_btn" type="submit" name="command" value="Delete" class="button" />
			<input id="cancel_btn" type="submit" name="command" value="Cancel" class="button" />
		</div>
		
	</form>
	</div>
</div>

 {% endblock content %}
